modified algorithm example section