training code of simple web applications