Implements checksum function, implementing User Story 2.