Added another homework 5 R solution by Anant Sogani.