Template for class assignment