build a rat in c