I added some more code. I think it works