problem 5 & 6