implemented the MemberQueryService with solid encapsulation and solid testability