code to engine model