Abstracted transform matrices into a Transform class