moderately functional code at the end of Thursday morning