added sample micro code