created buildResponse class