added complex template example