app now includes threshold counting and should perform all the tasks asked of the assignment