Java lesson for myself and son