implement histogram and box plot