algo final work