Adding basic mvc pattern.