Save Function implemented, will compile with cc *.c