Adding code for session 2 getting data