Refactoring - created signBit() function