finished a tutorial explaining initialization and input functions