Updated example. Moved benchmark into class file.