goalbook complete code