Impulsive heating in coronal loops