solved ch01ex04