First draft of the code. Initial goals in place.