modified m-file for better demonstration purpose, added interpretations in ppt