Implemented a simple demo for oop.