pattern classification homework