adding an example of 3-tier pattern