updated cars class with new methods