Added weighted method for complexity score