checksum code given in class