adding Java, Perl, PHP and Python samples