School project to write a simple version of stdio