added algorithm steps example