implemented get_response method
done with initial prototype