lab7 objected oriented programming