Multithreaded frogger project in C