Changed hash key to own class instead of string.