Added sum() function to ContainerModel