added view and model classes