implement single run of forward euler