Solves ex04 (pg. 97)