public static void main(String args[]) {
        Random rand = new Random();
        CycleFactory[] factoriesArray = {new BicycleFactory(), new TricycleFactory(), new UnicycleFactory()};

        for (int i=0; i<5; i++) {
            factoriesArray[rand.nextInt(3)].getCycle().ride();
        }
    }