done with problems 3 to 8