implementing step() method