finished part 3. added negate in cpu and test file.