adding dir class