finalized 13A exercises