added soleution to problem 13