add class extension