solved problems 5 6