gcalculating correctly & outputing receipt to console