adding some methods in Assignment model