finish the constructor of Percolation class