Learning Hierarchical Task Networks via Observation