Creating Device model.