completed lecture 7 - external templates