adding state machinery sample project