added models and rspec testing