sketched out rest of initial version of program