assignment2 for iat 381