made example similar to documentation