finished tutorial through templates