line and pie (basic working)