Design changes. Move getRate method to model