Added sample code for OOP. Subject for modification