Added program to calculate threes