Part of a good, larger series that demonstrates how to build a simple CRUD plugin.
Also helpful in this series is the preceding tutorial, Restricting / Hiding Menu Items, the title is misleading as it is actually about roles and capabilities which result in restricting/hiding menu items.