use get and set functions for mass so that radius is only calculated when mass changes.