more sophisticated example
introduce var helper