chpt 3: flow control done