Size and location of samurai housing was determined by income and standing. The richest and most powerful samurai in Kanazawa had their own men, often hundreds of them, who were housed in large areas that usually adjoined the main house. Samurai houses shared a similar basic pattern: a single-floored residence, usually fairly square or rectangular in plan, surrounded by a garden both the vegetable and the decorative kinds. The roof was gabled and faced the road. The boundary wall was usually made of beaten earth, topped with tiles. There are a number of them around in the city, most notably in the Nagamachi area. The size and height of the wall and the entry gate were also dictated by rank. Samurai over 400 "koku" in income had a stable gate, used to house guards and horses.