added algorhtm template