Expand templates

From Maths with Ronald
Expand templates