some exercise in K&R 3 years ago