add implementation of function to draw boxes