Adding solution for exam1