Added the output, this is the finished program