Learning to flip books