implemented area graphs, fixes #5