using classes and objects