added introduction and updated example