sorted out requires, and fixed last two examples