Adding annoymous Inner Class Code