Learning from demonstration framework