composite example using inline template