finished v1 of program