Updated Snap.h and Snap.cpp