the homework for week 3 if R programming: hospital ranks