Added controller and models

Added controller and models