Adding methods to the class