Moved stuff to the header file and created user_table for including.