Struct can just use attr_accessor to define methods