Added SAM source code