a simple rails app to evaluate the function