extract class methods