added result sequence with unit tests