draw lines before bubbles
prettier
use translation to optimize
generalize and improve readability
better example