Sample Assignment solution