refactor code to be object oriented in preparation for scalability and latency changes