Adding Viewport Code version 1