this is the main class created using meraj's dia.but needs some fixes.
meanwhile i'm working on database.