made rate a class constant