The door swung open at once. A tall, black-haired witch in emerald-green robes stood there. She had a very stern face and Charlotte was instantly reminded of her aunt and decided she'd rather not get in trouble with this woman.

"The firs' years, Professor McGonagall," said Hagrid.

"Thank you, Hagrid. I will take them from here."

She pulled the door wide. The entrance hall was so big you could have fit the whole of the Dursleys' house in it. The stone walls were lit with flaming torches like the ones at Gringotts, the ceiling was too high to make out and a magnificent marble staircase facing them led to the upper floors.

They followed Professor McGonagall across the flagged stone floor. Charlotte could hear the drone of hundreds of voices from a doorway to the right – the rest of the school must already be here – but Professor McGonagall showed the first years into a small, empty chamber off the hall. They crowded in, standing rather closer together than they would have usually done, peering about nervously.

"Welcome to Hogwarts," said Professor McGonagall. "The start-of-term banquet will begin shortly, but before you take your seats in the Great Hall, you will be sorted into your houses. The Sorting is a very important ceremony because, while you are here, your house will be something like your family within Hogwarts. You will have classes with the rest of your house, sleep in your house dormitory, and spend free time in your house common room.

"The four houses are called Gryffindor, Hufflepuff, Ravenclaw, and Slytherin. Each house has its own noble history and each has produced outstanding witches and wizards. While you are at Hogwarts, your triumphs will earn your house points, while any rule-breaking will lose house points. At the end of the year, the house with the most points is awarded the house cup, a great honor. I hope each of you will be a credit to whichever house becomes yours.

"The Sorting Ceremony will take place in a few minutes in front of the rest of the school. I suggest you all smarten yourselves up as much as you can while you are waiting."

Her eyes lingered for a moment on Neville's cloak, which was fastened under his left ear, and on Ron's smudged nose. Harry nervously tried to flatten his hair.

"I shall return when we are ready for you," said Professor McGonagall. "Please wait quietly."

She left the chamber. Charlotte nibbled down on her lip.

"How exactly do they sort us into houses?" Harry asked Ron.

"Some sort of test, I think. Fred said it hurts a lot, but I think he was joking."

Charlotte's heart gave a horrible jolt. A test? In front of the whole school? But she did not know any magic yet – what on earth would she have to do? The only thing she would be able to pass was a history test... Perhaps she would be a Ravenclaw like her grandmother? She had not expected something like this the moment they arrived. She looked around anxiously and saw that everyone else looked terrified, too. No one was talking much except Hermione Granger, who was whispering very fast about all the spells she had learned and wondering which one she would need. Charlotte tried hard to listen to her, hoping to pick up an incantation she could use. She had never been more nervous, never, not even when she had to explain to her aunt where she'd found the dusty motorcycle jacket she'd been using as a blanket at night because it smelled nice and her aunt had a fit. She kept her eyes fixed on the door. Any second now, Professor McGonagall would come back and lead her to her doom.

Then something happened that made her jump about a foot in the air – several people behind her screamed.

"What the – ?"

She gasped. So did the people around her. About twenty ghosts had just streamed through the back wall. Pearly-white and slightly transparent, they glided across the room talking to one another and hardly glancing at the first years. They seemed to be arguing. What looked like a fat little monk was saying: "Forgive and forget, I say, we out got give him a second chance – "

"My dear Friar, haven't we given Peeves all the chances he deserves? He gives us all a bad name and you know, he's not really even a ghost – I say, what are you all doing here?"

A ghost wearing a ruff and tights suddenly noticed the first years.

Nobody answered.

"New students!" said the Fat Friar, smiling around at them. "About to be Sorted, I suppose?"

A few people nodded mutely.

"Hope to see you in Hufflepuff!" said the Friar. "My old house, you know."

"Move along now," said a sharp voice. "The Sorting Ceremony is about to start."

Professor McGonagall had returned. One by one, the ghosts floated away through the opposite wall.

"Now, form a line," Professor McGonagall told the first years, "and follow me."

Feeling oddly as though her legs had turned to lead, Charlotte got into line behind a boy with sandy hair, with Ron behind her and Amanda and Harry behind Ron, and they walked out of the chamber, back across the hall, and through a pair of double doors into the Great Hall.

Charlotte had never even imagined such a strange and splendid place. It was lit by thousands and thousands of candles that were floating in midair over four long tables, where the rest of the students were sitting. These tables were laid with glittering golden plates and goblets. At the top of the hall was another long table where the teachers were sitting. Professor McGonagall led the first years up here, so that they came to a halt in line facing the other students, with the teachers behind them. The hundreds of faces staring at them looked like pale lanterns in the flickering candlelight. Dotted here and there among the students, the ghosts shone misty silver. Charlotte looked upward and saw a velvety black ceiling dotted with stars. He heard Hermione whisper, "It's bewitched to look like the sky outside. I read about it in Hogwarts, A History."

It was hard to believe there was a ceiling there at all, and that the Great Hall did not simply open on to the heavens.

Charlotte quickly looked down again as Professor McGonagall silently placed a four-legged stool in front of the first years. On top of the stool she put a pointed wizard's hat. This hat was patched and frayed and extremely dirty. Aunt Anne-Claire would not have let it in the house.

Maybe they had to try and get a rabbit out of it, Charlotte thought wildly, that seemed the sort of thing – noticing that everyone in the hall was now staring at the hat, she stared at it, too. For a few seconds, there was complete silence. Then the hat twitched. A rip near the brim opened wide like a mouth – and the hat began to sing:

"Oh, you may not think I'm pretty,

But don't judge on what you see,

I'll eat myself if you can find

A smarter hat than me.

You can keep your bowlers black,

Your top hats sleek and tall,

For I'm the Hogwarts Sorting Hat

And I can cap them all.

There's nothing hidden in your head

The Sorting Hat can't see,

So try me on and I will tell you

Where you ought to be.

You might belong in Gryffindor,

Where dwell the brave at heart,

Their daring, nerve and chivalry

Set Gryffindors apart;

You might belong in Hufflepuff,

Where they are just and loyal,

Those patient Hufflepuffs are true

And unafraid of toil;

Or yet in wise old Ravenclaw,

If you've a ready mind,

Where those of wit and learning,

Will always find their kind;

Or perhaps in Slytherin

You'll make your real friends,

Those cunning folks use any means

To achieve their ends.

So put me on! Don't be afraid!

And don't get in a flap!

You're in safe hands (though I have none)

For I'm a Thinking Cap!"

The whole hall burst into applause as the hat finished its song. It bowed to each of the four tables and then became quite still again.

"So we've just got to try on the hat!" Amanda whispered loudly. "I thought you said Fred said something about a troll."

Charlotte smiled weakly. Yes, trying on the hat was a lot better than having to do a spell, but she did wish they could have tried it on without everyone watching. The hat seemed to be asking rather a lot; Charlotte did not feel brave or quick-witted or any of it at the moment. If only the hat had mentioned a house for people who felt a bit queasy, that would have been the one for her.

Professor McGonagall now stepped forward holding a long roll of parchment.

"When I call your name, you will put on the hat and sit on the stool to be sorted," she said. "Abbott, Hannah!"

A pink-faced girl with blonde pigtails stumbled out of line, put on the hat, which fell right down over her eyes, and sat down. A moment's pause –

"HUFFLEPUFF!" shouted the hat.

The table on the right cheered and clapped as Hannah went to sit down at the Hufflepuff table. Harry saw the ghost of the Fat Friar waving merrily at her.

"Bones, Susan!"

"HUFFLEPUFF!" shouted the hat again, and Susan scuttled off to sit next to Hannah.

"Boot, Terry!"

"RAVENCLAW!"

The second table from the left clapped this time; several Ravenclaws stood up to shake hands with Terry as he joined them.

"Brocklehurst, Mandy" went to Ravcenclaw too, but "Brown, Lavender" became the first new Gryffindor, and the table on the far left exploded with cheers; Charlotte could see Ron's twin brothers cat-calling.

"Bulstrode, Millicent" then became a Slytherin. Perhaps it was Charlotte's imagination, after all he had heard about Slytherin, but he thought they looked like an unpleasant lot.

He was starting to feel definitely sick now. He remembered being picked for teams during gym at his old school. He had always been last to be chosen, not because he was no good, but because no one wanted Dudley to think they liked him.

"Cromwell, Charlotte!"

Charlotte heard a few chairs scrape behind him as she made her way nervously to the stool to put the hat on. She looked around. Some of the teachers were standing to get a better look. Perhaps they had known her mother, or her grandfather. She sat down with a deep breath and sighed.

"Ah," the hat said in her ears. "Charlotte Black."

That wasn't her name, Charlotte thought frantically. What if they'd gotten the wrong Charlotte? What if she wasn't supposed to be at Hogwarts at all?

"Oh, no," the hat's voice whispered, amused. "That is your name. Your mother had Gryffindor and Ravenclaw heritage, but your father, his family was Slytherin back as far as blood can be traced. You'd make a good Slytherin, my dear, but you take so strongly after your father, such a black sheep. I think you belong in -

"GRYFFINDOR!"

Charlotte felt intensely relieved as she walked to the Gryffindor table. The Weasley twins high-fived her as she went to sit down.

"Finch-Fletchley, Justin!"

"HUFFLEPUFF!"

Sometimes, Charlotte noticed, the hat shouted the house at once but at others it took a little while to decide. "Finnigan, Seamus," the sandy-haired boy next to Ron in the line, sat on the stool for almost a whole minute before the hat declared him a Gryffindor.

"Granger, Hermione!"

Hermione almost ran to the stool and jammed the hat eagerly on her head.

"GRYFFINDOR!" shouted the hat. Ron groaned.

When Neville Longbottom, the boy who kept losing his toad, was called, he fell over on his way to the stool. The hat took a long time to decide with Neville. When it finally shouted "GRYFFINDOR," Neville ran off still wearing it, and had to jog back amid gales of laughter to give it to "MacDougal, Morag."

Malfoy swaggered forward when his name was called and got his wish at once: the hat had barely touched his head when it screamed, "Slytherin!"

Malfoy when to join his friends Crabbe and Goyle, looking pleased with himself.

There were not many people left now.

"Moon"…, "Nott"…, "Parkinson"…, then a pair of twin girls, "Patil" and "Patil"…, then "Perks, Sally-Anne"…, and then, at last –

"Potter, Amanda!"

The red-haired beauty went forward and the hall was silent, almost holding its breath as she sat down on the stool, the hat sitting on her head for what felt almost like an eternity before it yelled, "GRYFFINDOR!" and she came with a smile on her face to sit beside Charlotte.

"Potter, Harry!"

As Harry stepped forward, whispers suddenly broke out like little hissing fires all over the hall.

"Potter, did she say?"

"The Harry Potter?"

The hat took its sweet time before finally announcing, "GRYFFINDOR!"

Harry took off the hat and walked shakily toward the Gryffindor table. He seemed to hardly noticed that he was getting the loudest cheer yet. Percy the Prefect got up and shook his hand vigorously, while the Weasley twins yelled, "We got Potter! We got Potter!" Harry sat next to Charlotte, who beamed at him, and opposite the ghost in the ruff they had seen earlier. The ghost patted his arm.

Charlotte could see the High Table properly now, she realized, as she looked around instead of listening to all the names that would come up between Harry and Ron. At the end nearest her sat Hagrid, who caught her eye and gave her the thumbs up. Charlotte grinned back. And there, in the center of the High Table, in a large gold chair, sat Albus Dumbledore. Dumbledore's silver hair was the only thing in the whole hall that shone as brightly as the ghosts. Charlotte spotted Professor Quirrell, too, the nervous young man from the Leaky Cauldron. He was looking very peculiar in a large purple turban.

And now there were only four people left to be Sorted.

"Thomas, Dean," a Black boy even taller than Ron, joined them at the Gryffindor Table. "Turpin Lisa," because a Ravenclaw and then it was Ron's turn. He was pale green by now. Charlotte crossed her fingers under the table and a second later the hat shouted, "GRYFFINDOR!"

Harry, Amanda, and Charlotte clapped loudly with the rest as Ron collapsed into the chair next to Harry.

"Well done, Ron, excellent," said Percy Weasley pompously across Harry as "Zabini, Blaise," was made a Slytherin. Professor McGonagall rolled up her scroll and took the Sorting Hat away.

Charlotte looked down at her empty gold plate. She had only just realized how hungry she was. The pumpkin pasties seemed ages ago.

Albus Dumbledore had gotten to his feet. He was beaming at the students his arms opened wide, as if nothing could have pleased him more than to see them all there.

"Welcome!" he said. "Welcome to a new year at Hogwarts! Before we begin our banquet, I would like to say a few words. And here they are: Nitwit! Blubber! Oddment! Tweak!

"Thank you!"

He sat back down. Everybody clapped and cheered. Charlotte did not know whether to laugh or not.

"Is he – a bit mad?" Amanda asked Percy uncertainly.

"Mad?" said Percy airily. "He's a genius! Best wizard in the world! But hi is a bit mad, yes. Potatoes, Charlotte?"

Charlotte's mouth fell open. The dishes in front of him were now piled with food. He had never seen so many things he liked to eat on one table: roast beef, roast chicken, pork chops, lamb chops, sausages, bacon and steak, boiled potatoes, roast potatoes, fries, Yorkshire pudding, peas, carrots, gravy, ketchup, and, for some strange reason, peppermint humbugs.

Charlotte piled his plate with a bit of everything except the peppermints and began to eat. It was all delicious.

"That does look good," said the ghost in the ruff sadly, watching Harry cut up his steak.

"Can't you – ?" Harry began.

"I haven't eaten for nearly four hundred years," said the host. "I don't need to, of course, but one does miss it. I don't think I've introduced myself? Sir Nicholas de Mimsy-Porpington at your service. Resident ghost of Gryffindor Tower."

"I know who you are!" said Ron suddenly. "My brothers told me about you – you're Nearly Headless Nick!"

"I would prefer you to call me Sir Nicholas de Mimsy – " the ghost began stiffly, but sandy-haired Seamus Finnigan interrupted.

"Nearly Headless? How can you be nearly headless?"

Sir Nicholas looked extremely miffed, as if their little chat was not going at all the way he wanted.

"Like this," he said irritably. He seized his left ear and pulled. His whole head swung off his neck and fell onto his shoulder as if it was on a hinge. Someone had obviously tried to behead him, but not done it properly. Looking pleased at the stunned looks on their faces, Nearly Headless Nick flipped his head back onto his neck, coughed, and said, "So – new Gryffindors! I hope you're going to help us win the house championship this year? Gryffindors have never gone so long without winning. Slytherins have got the cup six years in a row! The Bloody Baron's becoming almost unbearable. He's the Slytherin ghost."

Charlotte looked over at the Slytherin table and saw a horrible ghost sitting there, with blank staring eyes, a gaunt face, and robes stained with silver blood. He was right next to Malfoy who, Charlotte was pleased to see, did not look too pleased with the seating arrangements.

"How did he get covered in blood?" asked Seamus with great interest.

"I've never asked," said Nearly Headless Nick delicately.

When everyone had eaten as much as they could, the remains of the food faded from the plates, leaving them sparkling clean as before. A moment later the desserts appeared. Blocks of ice cream in every flavor you could think of, apple pies, treacle tarts, chocolate éclairs and jam doughnuts, trifle, strawberries, Jell-O, rice pudding…

As Harry helped himself to a treacle tart, the talk turned to their families.

"I'm half-and-half," said Seamus. "Me dad's a Muggle. Mom didn't tell him she was a witch 'til after they were married. Bit of a nasty shock for him."

They others laughed.

"What about you, Neville?" said Ron.

"Well, my gran brought me up and she's a witch," said Neville, "but the family thought I was all-Muggle for ages. My Great Uncle Algie kept trying to catch my off my guard and force some magic out of me – he pushed me off the end of Blackpool pier once, I nearly drowned – but nothing happened until I was eight. Great Uncle Algie came round for dinner, and he was hanging me out of an upstairs window by the ankles when my Great Auntie Enid offered him a meringue and he accidentally let go. But I bounced – all the way down the garden and into the road. They were all really pleased, Gran was crying, she was so happy. And you should have seen their faces when I got in here – they thought I might not be magic enough to come, you see. Great Uncle Algie was so pleased he bought me my toad."

On Harry's other side, Percy Weasley and Hermione were talking about lessons ("I do hope they start right away, there's so much to learn, I'm particularly interested in Transfiguration, you know, turning something into something else, of course, it's supposed to be very difficult – "; "You'll be starting small, just matches into needles and that sort of thing – ").

Harry, looked up at the High Table, and Charlotte followed his gaze. Hagrid was drinking deeply from his goblet. Professor McGonagall was talking to Professor Dumbledore. Professor Quirrell, in his absurd turban, was talking to a teacher with greasy black hair, a hooked nose, and sallow skin.

"Ouch!" Harry clapped a hand to his head.

"What is it?" asked Percy.

"N-nothing," said Charlotte carefully, watching Harry's face. He nodded.

"Who's that teacher talking to Professor Quirrell?" Amanda asked Percy.

"Oh, you know Quirrell already, do you? No wonder he's looking so nervous, that's Professor Snape. He teaches Potions, but he doesn't want to – everyone knows he's after Quirrell's job. Knows an awful lot about the Dark Arts, Snape."

Charlotte watched Snape for a while, but Snape did not look at them again.

At last, the desserts too disappeared, and Professor Dumbledore got to his feet again. The hall fell silent.

"Ahem – just a few more words now that we are all fed and watered. I have a few start-of-term notices to give you.

"First years should note that the forest on the grounds is forbidden to all pupils. And a few of our older students would do well to remember that as well."

Dumbledore's twinkling eyes flashed in the direction of the Weasley twins.

"I have also been asked by Mr. Filch, the caretaker, to remind you all that no magic should be used between classes in the corridors.

"Quidditch trials will be held in the second week of the term. Anyone interested in playing for their house teams should contact Madam Hooch.

"And finally, I must tell you that this year, the third-floor corridor on the right-hand side is out of bounds to everyone who does not wish to die a very painful death."

Charlotte laughed, but she was one of the few who did.

"He's not serious?" Harry muttered to Percy.

"Must be," said Percy, frowning at Dumbledore. "It's odd, because he usually gives us a reason why we're not allowed to go somewhere – the forest's full of dangerous beasts, everyone knows that. I do think he might have told us prefects, at least."

"And now, before we got to bed, let us sing the school song!" cried Dumbledore. Harry noticed that the other teachers' smiles had become rather fixed.

Dumbledore gave his wand a little flick, as if he was trying to get a fly off the end, and a long golden ribbon flew out of it, which rose high above the tables and twisted itself, snakelike, into words.

"Everyone pick their favorite tune," said Dumbledore, "and off we go!"

And the school bellowed:

"Hogwarts, Hogwarts, Hoggy Warty Hogwarts,

Teach us something, please,

Weather we be old and bald

Or young with scabby knees,

Our heads could do with filling

With some interesting stuff,

For now they're bare and full of air,

Dead flies and bits of fluff,

So teach us things worth knowing,

Bring back what we've forgot,

Just do your best, we'll do the rest,

And learn until our brains all rot."

Everybody finished the song at different times. At last, only the Weasley twins were left singing along to a very slow funeral march. Dumbledore conducted their last few lines with his wand and when they had finished, he was one of those who clapped loudest.

"Ah, music," he said, wiping his eyes. "A magic beyond all we do here! And now, bedtime. Off you trot!"

The Gryffindor first years followed Percy through the chattering crowds, out of the Great Hall, and up the marble staircase. Charlotte's legs were like lead again, but only because she was so tired and so full of food. She was too sleepy even to be surprised that twice Percy led them through doorways hidden behind sliding panels and tapestries. They climbed more staircases, yawning and dragging their feet, and Charlotte was just wondering how much farther they had to go when they came to a sudden halt.

A bundle of walking sticks was floating in midair ahead of them, and as Percy took a step toward them they started throwing themselves at him.

"Peeves," Percy whispered to the first years. "A poltergeist." He raised his voice. "Peeves – show yourself."

A loud, rude sound, like the air being let out of a balloon, answered.

"Do you want me to go to the Bloody Baron?"

There was a pop, and a little man with wicked, dark eyes and a wide mouth appeared, floating cross-legged in the air, clutching the walking sticks.

"Oooooooh!" he said, with an evil cackle. "Ickle Firsties! What fun!"

He swooped suddenly at them. They all ducked.

"Go away, Peeves, or the Baron'll hear about this, I mean it!" barked Percy.

Peeves stuck out his tongue and vanished, dropping the walking sticks on Neville's head. They heard him zooming away, rattling coats of armor as he passed.

"You want to watch out for Peeves," said Percy, as they set off again. "The Bloody Baron's the only one who can control him, he won't even listen to us prefects. Here we are."

At the very end of the corridor hung a portrait of a very fat woman in a pink silk dress.

"Password?" she said.

"Caput Draconis," said Percy, and the portrait swung forward to reveal a round hole in the wall. They all scrambled through it – Neville needed a leg up – and found themselves in the Gryffindor common room, a cozy, round room full of squashy armchairs.

Percy directed the girls through one door to their dormitory and the boys through another. At the top of a spiral staircase – they were obviously in one of the towers – they found their beds at last: five four-posters hung with deep red velvet curtains. Their trunks had already been brought up. Too tired to talk much, they pulled on their pajamas and fell into bed.

"Great food, isn't it?" Amanda muttered to Charlotte through the hangings.

Charlotte was going to ask Amanda if she had any of the treacle tart, but she fell asleep almost at once.

By the time she woke in the morning, she had forgotten all about the strange way the Sorting Hat had addressed her.