How scientists developed pills that can replace injections