Coordinates + draw function, needs optimization