To lock your computer when you close it you can follow the video above. To do this go to settings - security - general then turn on require password. I recommend that you turn it to five seconds that I shown in the video above. This way after five seconds your display is closed or screen saver starts the computer will lock and no one can then use your computer without your password.