simple-curve.rb works thanks to @GazCMarsh [skip ci]