Task 1 all code written. Fix precision later