Lab 3 solution