CS4032 Lab 2 solution