fixed code in both Examples and Home directory