used for practice code of core java