Final commit

The script consists of two functions, that provide the solution of
Programming Assignment 2