Library Project(again)

DRY code by using attr_accessor :name