with object-oriented programming in python