initial code organization