add lines
add sunday algorithm