How are theories developed?