Test of class based program structure