created Piles structure