Solved 1.2.1.a and 1.2.1.b