Updating code

up do date code added. moved old code to outdated folder