An old dog learns code