Finished Bed code

got it all to work.  only the images left to create.