Added validation of version number, passed all tests