succesfully implemented Point class