Fixed non-working example code