Working properly!!!!

Must be tested with more data!!!