segal homework #2
course work now works