Sample Function introduced