Revenue and earnings come in above expectations