Junk yard problem done as a class assignment