Alternate working copy

this uses rankhospital which was not allowed under the assignment instructions... but it is more elegant so i uploaded it.