updated example with documentation format