added storing responses in a class object