Middle Layer code
web page instead of index for TDD