Solved 4.

Solved problem 4. Also better indentation in common-math.