adding a simple Ruby script to solve problem #2