implemented integer sum computation