Modularization of code