Solve ex2.49