Added Main and Link classes.