Added comments, moved calculation into selling class