Define model and service interface