Added functional leap frogs part