Fixed function at top by adding global variable into def Point()