Nested function expansion - iTeachChem