added array out of bounds and division by zero runtime errors