Understanding Artificial Intelligence and its Effects on Society