Getting program 2 work