working with multiple sequences
working with multiple sequences for all three cases