completed book's examples