Sample java code for small blog posts