Created and edited code for OC Template