Filtering and sample output added