added assignments codes