Port XY model

Issue #14