add algirithm 8.1