Use 'as' syntax in problem 8