Second Tutorial - flash the ok LED - modified to use a proper functin for wait