Refactored sheet module to use a StyleSheet object.