Updated sameple program