I've not tried C before, so here goes nothing.