How to override core function

You can use monkey-patching to override core methods.