added first half of my attempt at ID3