added servlet and example code