Code with Weka - However weka doesnt work as expected. Throws runtime error.