Tesla was an unprofitable company when it went public in 2010