Trying out programs from the book