A toy example introducing a few core concepts in Java