Data Mining Sample code