completely finished convertverting sdss program into appropriate classes, implemented based classes