Solutions for hash exercises