finished problems 4, 5