add method replacement example