split problem 2 up into two problems