plotting implemeneted, to be tested