how to create a rat in C