Added attr_accessor and changed puts to return