added consume example
added template specialization