got program 3 working, program 1 also works still