Alterted Data so algorithim works, fixed hash constructor