Made a working program.