How to discover the Rogers-Ramanujan identities