added regalloc class