created all class method for person