maester luwin had taught him his stars as a boy in winterfell ; he had learned the names of the twelve houses of heaven and the rulers of each ; he could find the seven wanderers sacred to the faith ; he was old friends with the ice dragon , the shadowcat , the moonmaid , and the sword of the morning .