Creating a Car class for object access and function operation