Added logic folder

Updated logic