gems complex example update