A new measure of software complexity based on cognitive weights