Began writing modular rendering code