Changed parseDemand() to have integer Keys