Added functionality to collect name and email through  stdClass and display it onscreen.