Lab 5 solution