created step function but not test
created and tested formatting print of grid