MorningWalk.addSteps(sundayMorningWalk)(10) print(sundayMorningWalk.steps) // it prints 'steps' as 260