added bydate methods, passing tests