Added #generate method to Representation class.