Simple treatment of anharmonic effects on the specific heat