Update the Version class to use getter