Stock market gains