update class 3 code with solutions