typed another class from the book