Implemented functions for assignment