update: add method so that it will add assignments based on deadline( earlier jobs will appear first)