Made methods public, wrote main()