Created class for obstacles