Updating the docs and adding improved solution to original Machin as well.
Adding some references.
Moving the prompt code to a class method.
Adding default task to rakefile to runs the script.
Updating solution section.