added the sams and ref for toy example