Understanding type 2 diabetes