added session and event models and rspec tests