added idiomatic example