Programming Assignment 2 - SM