adding a getVersion() method