homework #1 for loftblog