Practice for my Java class.