Corrected compiler errors for parts 1.1 and 1.2