test prorgam updated to have 3 working methods