Added sample code for typeclass lecture