Template design