finished this one pretty quickly. Hackily did the format by hard coding 0s instead of checking whether it was necesary, but I dont think that was the point of the exercise.