rails framework and basic model.