example improvement

adding a real example use of Component