A new approach to defining software complexity measures