added method for mod 10 checksum