replacing main with code from branch attempt-with-code