making model and controller
finish basic functionality