Implemented angle calculation and printing