wrapped response in a class; added documentation