flatten code for an example in the readme