Cone class code modularized AMD style