simple implementation of spacetime