changed from procedural to object oriented programming