Generate Code implementation