Code implementation per MongoDB University sample