- factored out area calculation into a function to get rid of tuples