completed plots1-3 and code