Finished program 2