basic cookbook + test code implementation