Solved 1.A and B