結果 : object oriented approach in python