結果 : define function inside a class python