Template for cate.cpp completed