Building scalable and modular code