Added Subject Model and corresponding test along with factory implementation.