Fix compilation errors, and breaks Hw7.java into three files including Op and Rel.