added an mvc example

Added an alternative example in the spirit of mvc