The last two labs (Documents in Chunks and Detect Scatter Gather Queries) describe the same procedure in Lab Prerequisites section.
The missing thing is between steps 2 and 3. The last step will not work unless you enable sharding for the given database beforehand.
sh.enableSharding("<target database>")
d.