Added model util and extracted table class for easier serialization