Separates library class from sample ones; adds listener to card click; adds cardadapter to be subclassed by the client.