Added Code model and controller