Examples from Programming in Java module