Monkey patching implementation