changing the second schedule constructor