Implemented F function

Changed xL and xR to ints