Added finished problem 2a and 2c