Small programs to teach Java