Added code for Assignment part 2 -GET response and  publish to topics