add likelihood in sequence.py