Inserted some theory here and there