Theory Of The Firm In The Platform Economy