project 1 for cs340 using QT