Pedro Cuin RESUBMIT: Assignment 3