Change of attitude

I'm losing weight and all I've really done is change my attitude, as a result I'm not craving junk food. Heck I've had a family sized block of chocolate in the fridge for the last week and it is still unopened.