Working on a basic simulation