Stock API and Factory in the jjstock done