Learning High-level Representations from Demonstations