Exercise3 removed unused code