unit 7 rack homework. Table prints with rank successfully