code for analyzing stuff happening sundays