problems 6-8 ok