create class and modules for mvc structure