test then implement methods for purchasing and selling stocks