Completed assignment-2 using the forked skeleton