can you give me some example code implementing OOP