Sum Function With A Structured Reference