with a specified number of layers