Math problem generation rails app