Implementation of file descriptor class