added my solution to the second problem set