added necessary attr_accessor, and strong parameters (new gem)