Making code modular