added method to get major and minor version number