Implementation of task given at UMC IV