issue278

@mitechie could you review the code and comment on it.

Thank you
Pradyumna