v.1 complete. main class added