From the astro to the nano scale: A learning by doing teaching pathway