Codes used for OOP class