Trader Desktop exercise done in Angular JS