Exercise#16-17 from 11