結果 : how to write class methods in python