Removed redundant code from Tutorial 4 problem 1