Program for homework 3.2 of MongoDB University MongoDB for java developers course