Exercise#18-19 from 11