create polimorphism in constructor