working on chapter 9
short lines program