Add DoubleMethodLock class to demo syschronized key word to be added
before two method.