add a getVersion method.