added code json and xml into classes controller and made index.gsp page in view