Gun Class added. Time class added. Optimizations done.