first iteration mongoose implementation