Added ternary operator and callback example