Added logic start

Started the logic implementation