Replace the getVersion() method with a version property.