If you think onions serve the purpose of eating only, then you might be wrong.