added area() function, closes #41