A study of software metrics