Factory design patter/Language class files