week 8: nextLevel implementation and tests (from James)