implemented Subject model from example