Finished #2 query
finished problem #6!