implemented model based table class