problem 2a & 2b