improved usage of object-oriented programming