made class usable by other programs. Created a constructor.