Learning grounded finite-state representations from unstructured demonstrations | Synapse