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