final commit

working code for ID3