Assignment 2: Alejandro Frias and Paul Dapolito

I was hoping there actually was an elegant way to do this problem