MongoDB Java Class Homework