public Flower createFlower(String type, String color){
        Flower flower = null;
        if(type.equalsIgnoreCase("rose")){
            flower = new Rose(defineColor(color));
        }
        else{
            if(type.equalsIgnoreCase("tulip")){
                flower = new Tulip(defineColor(color));
            }
            else{
                if(type.equalsIgnoreCase("daisy")){
                    flower = new Daisy(defineColor(color));
                }
                else{
                    if(type.equalsIgnoreCase("lily")){
                        flower = new Lily(defineColor(color));
                    }
                    else{
                        if(type.equalsIgnoreCase("violet")){
                            flower = new Violet(defineColor(color));
                        }
                    }
                }
            }
        }
        return flower;
    }