add examples and slides for apply and tapply functions