HKU assignment, a multiand distortion C++ project