Output for X=cord and Y=frasction seems working