Starting a sentence with by is penalty. The subordinate expression is a prepositional one which acts as an adverb to customize the verb take in. It is an adverb of way responding to the concern beginning with how.