following book example