finished hotplate.c