Cleaned up code from sample 1 and removed typos
Add new sample