add logic part of the project