migrate trifles/changepoint here as an example application