Very simple ball simulation

I learned from here:http://82.30.70.163/BlueThen/wordpress/index.php/processing-app/do-you-like-balls/