Splitting code in smaller units