Included code for VIEW 

better layout of the code