getVersion method