write your own servlet