core data part
time change to double
add data base interface