<qa>  What is the purpose of the study?The purpose of this study is to test the effect of an implanted device that stimulates the stomach on weight loss in patients suffering from obesity and type 2 diabetes. 