Added problem 3 for servlets