Code to create a shelf