Try scala's monkey patching equivalent