My scala programs to simulate some models.