making class methods