answers to sam filtering exercises