Added structure code

Made a start to update time function