Made a Transformer header file and necessary functions