I am an Artificial Intelligence (AI) Postdoctoral Researcher in the Perception and Manipulation group at IRI, CSIC-UPC. Inspired by program synthesis community, I have explored along my PhD the potential of classical planning techniques to generate algorithm-like solutions that generalize over multiple problems. Program synthesis is one of the main problems in AI usually approached with logic and Machine Learning, so now I am working on how to make planning and learning benefit from each other, and extending these ideas to learning high-level models, domain control knowledge, explainable AI and possibly answering ethical questions for AI and Robotics. This research may has an impact in other fields such as robotics, software engineering, cybersecurity, and even theoretical biology.