The algebraic structure of group rings