rewrite of basic component tutorial for spring 13