create spec for models