rewrite of basic component tutorial for Spring 13