updated Collection.php

Added sum method definition