shelter model class refactored to include activerecord