putting some code you gave us in