use pattern for states, closes #12

2 jobs for issue-12
in 26 seconds, using 0 compute credits, and was queued for 3 seconds