Most seeds come from fruits that naturally free themselves from the shell , unlike nuts such as hazelnuts , chestnuts , and acorns , which have hard shell walls and originate from a compound ovary .
But nuts ( such as hazelnuts , hickories , chestnuts and acorns ) have a stony fruit wall which keeps the seed inside .