added model and user state
adding new files