Implement Ch. 9 exercises