finished exercises 13 and 14