i didnt understand class methods this should work better