Get filter to work with dictionary by creating method that return values of dictionary