creating final code and GUI for the project