cleaned up the rest consumption example