Added Hash class, together with some additional useful classes.