Practicing Java basics