updated code

it has a step function and __main__