Learning High-Level Tasks through Imitation