Added functions to calculate some simple properties