implemented and tested response class