Collection program with greenfoot aplication