Import code from cod, set up basic structure