moved response to a custom class