Lab 6 solution