samples of using graphic libraries