castle, they wait in a small chamber off the entrance hall until the older students have taken their seats, and then enter the Great Hall for the Sorting Ceremony to determine their House assignments. As Professor Minerva McGonagall said in Harry Potter and the Philosopher's Stone, "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." After the Sorting Hat sings a song, each student in turn is seated upon the stool in front of the rest of the student body. The Hat is placed on the student's head, whereupon it examines his or her mind and assigns them to one of the four Houses based on abilities, personality, and preferences. After the Sorting Ceremony, the students and teachers enjoy a feast, prepared by the Hogwarts house-elves. If Dumbledore is feeling cheerful, he will lead the students in singing the school song. Houses Hogwarts is divided into four houses, each bearing the last name of its founder: Godric Gryffindor, Salazar Slytherin, Rowena Ravenclaw and Helga Hufflepuff. Throughout the school year, the houses compete for the House Cup, gaining and losing points based on actions such as performance in class and rule violations. The house with the highest end-of-year total wins and has its colours displayed in the Great Hall for the following school year. Each house also has its own Quidditch team that competes for the Quidditch Cup. These two competitions breed rivalries between the houses. Houses at Hogwarts are living and learning communities for their students. Each house is under the authority of one of the Hogwarts staff members. The Heads of the houses, as they are called, are in charge of giving their students important information, dealing with matters of severe punishment, and responding to emergencies in their houses, among other things. The dormitory and common room of a House are, barring rare exceptions, inaccessible to students belonging to other Houses; however, different houses will share classes as they are based on year group rather than House. In the early days of Hogwarts, the four founders hand-picked students for their Houses. When the founders worried how students would be selected after their deaths, Godric Gryffindor took his hat off and they each