Messed around with problem 18.