soln for #4