finished ex 2 of Retrieving Data