Assignment one of Algorithm I