assignment-2 of DI2