Classification of Piles Based on Function