add method injection sample