midterm and first rails app