Updated problem 2a to 2c file