Template construction

First try