Declared and implemented addColumn function