Exercise2-4 from 11