Homeworks implemented using Java