added sum() collection method