solution for hw 2 electrical engineering 5385540