Complete

Complete the template function.