Implement partial

For issue #17.