Finished the program (it's working)