Got c working