(#9) Add template usage in compute