Classification of sunspots