add extension
fix test and extract a method
#02 should pick bag by ticket
#03 should store bag by sequence
#02 add cases about invalid ticket