Made the class Blocks with restrictions for certain blocks.