Creating gesture factory and model.