Finished program

This should now run correctly.