First try at implementing references (#13)