first two intro examples in js