proj 2 function definitions added, barebones, not working, issue with yield() & start_thread() ... possibly more issues here