Lab 2 solution