exceptions

implemented exceptions for Sum and filling