code complete

the code is complete and working as  required