this is a book on pearl , simple example with explanation is given here. it could be beneficial for begineres.