Write Space class and corresponding tests
Merge pull request #1 from yibeikafei/spaces

Write Space class and corresponding tests