General coding problems and solutions