updated example main