Created the basic functionality and tables