first draft of code, next: compile