refactor Response class.