Generate initial variables and functions
Initial works on view