C Code from my MSc Course