Added source text for two sample methods