first version of working rails app