Change @rate from attr_accessor -> attr_reader