ch2 - ex2 - bug fixes. ex3-5