Object-oriented my code