add sample for model based apps