added more idiomatic example