Solve ex. 12