Here is the completed text:
Medieval castles date 1) back to the period from 476 to 1453 A.D. It often took some years to build such a masterpiece of classical 2) architecture. Castles were used as both a 3) fortress and a house for a family. They are very popular with tourists, and many people can enjoy really beautiful 4) views from castles' towers. Many castles have 5) spooky legends.