Smart bottles