beginning separating feature calculation into modules, starting with pits