assignment-4 from last semester