Grooves in grasshopper

@works.satyajit posted the same task as you do. Are you guys in the same class?