Created array and calcyear function

Removed madlib function