finished ex2
finished ex3
fixed floating point calculation
finished ex4