Just thought about redesigning the code but was not sure whether to that or not. neither was able to design the structure for code that would be best. so, got little dishearten. Then attended a seminar to get motivated. In evening talked to mentor to get remove confusions related to it.