Got code to a fully functional stage