Added source code to resolve compiling errors with latex