Add method to the class piece