Implemented Collider class