analysis in buying shares