basic plot working