updated example to include instance_type