How long did it take to build the castle?