update example, make line number reactive