Animation of Some cubes into a bucket

Dear Friends

I need serious help. I am not getting any idea on how to draw 3D cubes going in a straight line and falling into a bucket.
Once the bucket is full, the cubes must fall off from under the bucket(it has a hole). Once cubes start falling off, the cubes must be again created and must keep falling into the bucket.
Guys plz help. Its for my Graphics Project ( Open GL using C++).