exercise 2 in file-system exercises