problem 1 & 2