to be solved for k=1
k=2 working fine