Added more examples and corrected equating y to NULL