Implemented Stax example