Changed the Assignment Stack to a Dictionary instead of Array