learn file and dir class.