Pascal -
1. Used an already existing class for calculating factorial.
2. Handles negetive number exception.