First implementation of assignment