Use function statement form
Rename directory bag to fileSystem