Modified Mirror function signature
Added -g flags for compile and linking to be able to debug the program in gdb