Created working version of program