Added return string in weekday and added function isLeapYear