Better way to write 10 elevated to 9.
Using attr_reader instead of the explicit instance variable.