implemented models for Subject and Columns