Removing throws declaration from sample code.