Completed and hand tested HalfAdder class.