added timer and finite state machine examples