filter exercise proposed solution