A java application used to manage capital gains or losses based on a given input of a sequence of transactions.