refactored and added new structural model for the transformer.