added example class from book