First programming assignment-TSAM