created basic switch model - ajv