An introduction to algebraic structures