This is the version I uploaded as my 9th homework