Solved problems 4 & 5.