Incoming cookie

Gave this a shot as an exercise, let me know if this is what you were envisioning.