consumer refactor
simple example