Solved problems 1-3.