updated2 assignment-4