lab6: hash