modification of week1_1 with mongo