solutions to exercises of chapter hash