implemented structured output. imported into eclipse.