Playing with code while reading through the book "The Well Grounded Java Developer"