Beginning of serialize to range

Working on #13