Setup test framework

Maybe write some simple tests as you refactor the script into a class. You could collect the inputs from the console with `gets`, like you already do, but use a `LaserCalculator` class to do the heavy lifting... or something like that :)