class methods problem