Adding of Strategy pattern to tex