Where is the problem? when i change int into double at some places it wont even compile !