ch 7 part 4 - minprintf