Added exercise6.js with filter.js