Update my_lib.cpp

Version check added