first attempt at drawing code