On a new class of error control codes and symmetric functions