Exercise 6: Maximum likelihood estimation