Theoretical and Experimental Analysis of a Two-Stage System for Classification