tried to typed up a practice prob