Warped the code to OOP