Fixed Vipul's code so it correctly calls the API and displays the information