fixing Cars class scope and returning public methods