Assignment redesigned as per instructed