A method of construction of Fréchet spaces