Finished basic hash implementation