Initial code for two problems.