added prototype processing of ids, and started working on classes.