add C solution