basic approach
returning json response