Sum Function With Structured Reference