Moved table() and menu() into a separate module, as I'd like to use them elsewhere.