Gave the client example a little logic