From big bang to big crunch and beyond