added decorated measure function example to code and analysis